<template>
  <!-- 全局容器 -->
  <view class="page-container">
      <slot />
    <ExportStatus />
  </view>

  <PrivacyPopup />
</template>

<script setup lang="ts">
  import PrivacyPopup from '@/components/PrivacyPopup/index.vue';
  import ExportStatus from '@/components/ExportStatus/index.vue';
  import { type PropType } from 'vue';

  const enterOptions = uni.getEnterOptionsSync();

  defineProps({
    enterOptions: Object as PropType<UniApp.GetLaunchOptionsSyncOptions>,
  });

  const emits = defineEmits(['update:enterOptions']);

  emits('update:enterOptions', enterOptions);
</script>

<style lang="scss" scoped>
  .page-container {
    position: relative;
  }
</style>
